﻿using System;
using System.Collections.Generic;
using System.Text;
using WordService.Model;

namespace WordService.Business.IBLL
{
    public interface IAuthorBLL
    {
        /// <summary>
        /// 创建一个作者
        /// </summary>
        /// <param name="author">创建的作者模型</param>
        /// <returns></returns>
        Author CreateAuthor(Author author);
        /// <summary>
        /// 批量创建作者
        /// </summary>
        /// <param name="authors">传入一个作者的List</param>
        /// <returns></returns>
        Boolean CreateAuthors(IList<Author> authors,Boolean isSame);
        /// <summary>
        /// 检查作者是否同一人，需要计算作者的出现次数
        /// </summary>
        /// <param name="author"></param>
        /// <returns></returns>
        Boolean CheckAuthor(Author author);
        /// <summary>
        /// 修改作者的相关信息
        /// </summary>
        /// <param name="author"></param>
        /// <returns></returns>
        Boolean ModifyAuthor(Author author);
        /// <summary>
        /// 查询作者
        /// </summary>
        /// <param name="keywordName"></param>
        /// <param name="insName"></param>
        /// <param name="frequency"></param>
        /// <param name="year"></param>
        /// <returns></returns>
        IList<Model.Author> QueryByCondition(string keywordName, string insName, long frequency, string year);
        /// <summary>
        /// 获取所有作者
        /// </summary>
        /// <returns></returns>
        IList<Author> QueryAllAuthors();
    }
}
